﻿@page "/permissions"

<h3>Show different buttons based on permission</h3>

<AuthorizeView Policy="create">
    <button>Create</button>
</AuthorizeView>
<AuthorizeView Policy="retrieve">
    <button>Retrieve</button>
</AuthorizeView>
<AuthorizeView Policy="update">
    <button>Update</button>
</AuthorizeView>
<AuthorizeView Policy="delete">
    <button>Delete</button>
</AuthorizeView>
@code {

}
